Autogenerated HTML docs for v1.6.0-36-g3814c
diff --git a/git-checkout.html b/git-checkout.html index f997d75..afa2b48 100644 --- a/git-checkout.html +++ b/git-checkout.html
@@ -321,7 +321,7 @@ <h2>SYNOPSIS</h2> <div class="sectionbody"> <div class="verseblock"> -<div class="content"><em>git checkout</em> [-q] [-f] [[--track | --no-track] -b <new_branch> [-l]] [-m] [<branch>] +<div class="content"><em>git checkout</em> [-q] [-f] [--track | --no-track] [-b <new_branch> [-l]] [-m] [<branch>] <em>git checkout</em> [<tree-ish>] [--] <paths>…</div></div> </div> <h2 id="_description">DESCRIPTION</h2> @@ -332,6 +332,9 @@ specified, <new_branch>. Using -b will cause <new_branch> to be created; in this case you can use the --track or --no-track options, which will be passed to <tt>git branch</tt>.</p></div> +<div class="para"><p>As a convenience, --track will default to create a branch whose +name is constructed from the specified branch name by stripping +the first namespace level.</p></div> <div class="para"><p>When <paths> are given, this command does <strong>not</strong> switch branches. It updates the named paths in the working tree from the index file (i.e. it runs <tt>git checkout-index -f -u</tt>), or @@ -392,6 +395,9 @@ given. Set it to <tt>always</tt> if you want this behavior when the start-point is either a local or remote branch. </p> +<div class="para"><p>If no <em>-b</em> option was given, a name will be made up for you, by stripping +the part up to the first slash of the tracked branch. For example, if you +called <em>git checkout --track origin/next</em>, the branch name will be <em>next</em>.</p></div> </dd> <dt> --no-track @@ -590,7 +596,7 @@ </div> <div id="footer"> <div id="footer-text"> -Last updated 2008-07-26 06:45:37 UTC +Last updated 2008-08-20 09:13:27 UTC </div> </div> </body>